package com.github.codemperor.core.schedule.db;

import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;
import tk.mybatis.mapper.common.MySqlMapper;

public interface EmSchedulerManagerMapper extends Mapper<EmSchedulerManager>, MySqlMapper<EmSchedulerManager> {

    @Update("update em_scheduler_manager set await=1 where classz=#{classz} and await=0")
    int jobLock(String classz);
}
